package com.adong.service.impl;

import com.adong.dao.RoleDao;
import com.adong.domain.Role;
import com.adong.service.RoleService;


import java.util.List;

/**
 * @author com.adong
 */

public class RoleServiceImpl implements RoleService {

    private RoleDao roleDao;

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;

    }

    @Override
    public List<Role> list() {

        return roleDao.findAll();
    }

    @Override
    public void save(Role role) {
        roleDao.save(role);
    }
}
